//
//  XJIWantServiceFooterItem.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/7/16.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJIWantServiceFooterItem.h"
@interface XJIWantServiceFooterItem()

@end
@implementation XJIWantServiceFooterItem

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.chaHaoButton.hidden = YES;
    self.cntLb.hidden = YES;
}

- (IBAction)clickChaHaoAction:(UIButton *)sender {
    
    if (self.xjiwsfooterItemBlock) {
        self.xjiwsfooterItemBlock();
    }
}

#pragma mark - 二 赋值
- (void)configureXJIWantServiceFooterItemWithArr:(NSArray *)arr indexPath:(NSIndexPath *)indexPath {
  
    if(arr.count) return;
    
    /**
     只显示6张图 如果<6,点击最后一个item可以添加图片。
     最后一个 显示还可以上传几个图片。cntLb 显示
     其他图片:chaHaoButton 显示
     */
    self.cntLb.hidden = NO;
    self.chaHaoButton.hidden = NO;
    XJLog(@"====:%ld",(long)indexPath.row);
    
}
// mock 定好接口文档。


- (void)configureXJIWantServiceFooterItem:(UIImage *)img {
    self.cntLb.hidden = NO;
    self.chaHaoButton.hidden = NO;
    self.imgIv.image = img;
}


@end
